package com.xdb.sqlparser.dialect.oracle.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLStatement;
import com.xdb.sqlparser.dialect.oracle.ast.clause.OracleParameter;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleBlockStatement extends OracleStatementImpl {

	private List<OracleParameter> parameters = new ArrayList<OracleParameter>();

	private List<SQLStatement> statementList = new ArrayList<SQLStatement>();

	public List<SQLStatement> getStatementList() {
		return statementList;
	}

	public void setStatementList(List<SQLStatement> statementList) {
		this.statementList = statementList;
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, parameters);
			acceptChild(visitor, statementList);
		}
		visitor.endVisit(this);
	}

	public List<OracleParameter> getParameters() {
		return parameters;
	}

	public void setParameters(List<OracleParameter> parameters) {
		this.parameters = parameters;
	}

}
